package com.liu.seckill.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName DemoController
 * @Author ：name
 * @Date ：2022-02-14 16:11
 * @Description：
 * @Version: 1.0
 */
@Controller
@RequestMapping("/demo")
public class DemoController {

    /**
     * 测试页面跳转
     *
     * @return
     */
 @RequestMapping("/hello")

  public String hello(Model model) {
        model.addAttribute("name", "xxxx");
        return "hello";
    }

}
